package com.facebank.usersupport.util;

/**
 * @Auther: yaozun
 * @Date: 2018/4/10 0010 11:32
 * @Description:
 */
public class GetOrder {

    public static void main(String[] args) {
        genOrderId("1435");

    }

    public static Long genOrderId(String machineId){
        String orderId =
                machineId +
                        (System.currentTimeMillis() + "").substring(1) +
                        (System.nanoTime() + "").substring(7, 10);
        System.out.println(orderId);
        return Long.valueOf(orderId);
    }}
